package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 申领航材批次号
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("claim_date_no")
@ApiModel(value="ClaimDateNo对象", description="申领航材批次号")
@Data
public class ClaimDateNo extends Model<ClaimDateNo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申领id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "申领批次号")
    @TableField("claim_odd_number")
    private String claimOddNumber;

    @ApiModelProperty(value = "申领人id ")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "状态 1 待申领/ 2 申领(交接)通过 / 3申领(不通过)不通过 ")
    @TableField("claim_date_no_state")
    private String claimDateNoState;

    @ApiModelProperty(value = "申领单位id（接收单位）")
    @TableField("unit_id")
    private String unitId;

    @ApiModelProperty(value = "更新时间(上次审批时间)")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "不通过原因")
    @TableField("reason_for_failure")
    private String reasonForFailure;

    @ApiModelProperty(value = "审批人")
    @TableField("claim_approval_user_id")
    private String claimApprovalUserId;


    // 交接的所有航材 单件物品
    @ApiModelProperty(value = "申领物品集合")
    @TableField(exist = false)
    List<ClaimGoods> claimGoodsList;

    @ApiModelProperty(value = "单位名称")
    @TableField(exist = false)
    private String unitName;

    @ApiModelProperty(value = "申领人")
    @TableField(exist = false)
    private String name;


}
